Node.js Blueprints by 2014

Node.js Blueprints by 2014

Author:2014
Language: eng
Format: epub, mobi
Publisher: Packt Publishing


The server listens on port 3000, and it has only one handler. The request we are waiting for contains the GET parameter oauth_verifier. We will get access to it by using the url module and its parse method. It's also important that we send true as the second parameter so that Node.js parses the query string of the request. By passing oauth_verifier to flapi, the client's getUserAccessToken method, we will get the needed token and secret. There is an uploadPhotos function called at the end, but we will leave its body empty for now. This will be filled in the next section of the chapter.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.